package com.ctshk.rpc.user.req;

import com.ctshk.common.model.PageReq;
import com.ctshk.common.model.TokenUser;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * <p>
 *  取消订单REQ
 * </p>
 *
 * @author 李新科
 * @date 2021/5/17 11:35
 */
@Data
@Accessors(chain = true)
@ApiModel(value="取消订单REQ", description="取消订单REQ")
public class OrderCancelReq extends PageReq implements Serializable {

    @ApiModelProperty(value="id",required = true)
    @NotNull(message = "id不能为空")
    private Long id;

    private TokenUser tokenUser;

    @NotNull(message = "取消原因ID不能为空")
    @ApiModelProperty(value = "取消原因ID",required = true)
    private Long cancelReasonId;

    @NotNull(message = "取消原因不能为空")
    @ApiModelProperty(value = "取消原因",required = true)
    private String cancelReason;

    @ApiModelProperty(value = "备注")
    private String remark;
}
